It seems to be a common problem with Eclipse CDT on Windows that Eclipse uses the Windows "del" command to perform a "clean", while using Unix-style paths and rm options. The workaround, at least for the Juno release, is to force Eclipse to use the GnuUtils rm instead: Editing .cproject to change the clean command
I had the opposite problem - Eclipse insisted on running "del" in a project using the GNU toolchain and MinGW build tools, which did not work. Therefore, I edited .cproject to force the use of rm.
Is this the only way to do it, even in newer releases of Eclipse, e.g. Neon? I would expect that Eclipse has a built-in control for this setting, but I browsed through the project settings and through the online help without finding any.
Copyright Notice:Content Author:「Klaus Kaiser」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/45379793/can-i-set-the-clean-command-in-eclipse-neon-cdt-without-manually-editing-cpro